You can get information about a volume by calling the GetVInfo or GetVRefNum function.
You can use the GetVInfo function to get information about a mounted volume.
FUNCTION GetVInfo (drvNum: Integer; volName: StringPtr;
VAR vRefNum: Integer;
VAR freeBytes: LongInt): OSErr;
You can use the GetVRefNum function to get a volume reference number from a file reference number.
FUNCTION GetVRefNum (refNum: Integer; VAR vRefNum: Integer):
OSErr;